<template>
	<view :style="viewColor">
		<skeleton :show="showSkeleton" :isNodes="isNodes" ref="skeleton" loading="chiaroscuro" selector="skeleton"
			bgcolor="transparent"></skeleton>
		<!-- 自定义顶部背景颜色 -->
		<view class="top">
			<!-- #ifdef MP || APP-PLUS -->
			<view class="sys-head">
				<view class="sys-bar" :style="{height:sysHeight}"></view>
				<!-- #ifdef MP -->
				<view class="sys-title">我的</view>
				<!-- #endif -->
				<view class="bg"></view>
			</view>
			<!-- #endif -->
		</view>
		<!-- 自定义顶部背景颜色 -->
		<view class="new-users skeleton" :style="{visibility: showSkeleton ? 'hidden' : 'visible'}">
			<view class="head">
				<view class="user-card" :class="userInfo.svip_open && svip_switch_status == 1 ? 'svip-card' : ''">
					<view class="bg"></view>
					<view class="user-info">
						<view class="avatar-box" :class="{on:userInfo.is_svip > 0 && svip_switch_status == 1}">
							<image class="avatar skeleton-radius"
								:src="userInfo.avatar ? userInfo.avatar : '/static/images/f.png'"
								@click="setUserInformation()"></image>
							<!-- <view class="headwear" v-if="userInfo.is_svip > 0 && svip_switch_status == 1">
								<image src="/static/images/headwear.png"></image>
							</view> -->
						</view>
						<view class="info">
							<!--#ifdef MP-->
							<view class="name" v-if="!userInfo.uid" @click="openAuto">
								请点击授权<image src="https://img.jukee.net/default/c8a8220230918204951201.png" class="tips_login" />
							</view>
							<!--#endif-->
							<!--#ifdef APP-PLUS-->
							<view class="name" v-if="!userInfo.uid" @click="openAuto">
								请点击登录
							</view>
							<!--#endif-->
							<!--#ifdef H5-->
							<view class="name" v-if="!userInfo.uid" @click="openAuto">
								<text v-if="isWeixin">请点击授权</text>
								<text v-else>请点击登录</text>
							</view>
							<!--#endif-->
							<view class="name" v-if="userInfo.uid">
								<text @click="setUserInformation()">{{userInfo.nickname}}</text>
								<image v-if="member_status" class="level_icon" :src="userInfo.member_icon" alt="">
								<!-- <view class="vip" @click="homePromotion">
									<image src="https://img.jukee.net/def/87275202310181754226510.jpg" mode="widthFix"></image>
								</view> -->
							</view>
							<view class="num" v-if="isLogin" @click="goEdit()">
								<!-- <view class="user_bz_zl font-size36-500" v-if="!userInfo.is_perfect">完善资料></view>
								<view class="user_bz_zl font-size36-500" v-else>编辑资料></view> -->
								<view class="user_bz_zl font-size32-bold">我的微店></view>
								<view class="vip" v-if="userInfo.is_svip > 0 && svip_switch_status == 1" style="display: flex;align-items: center;margin-left: 10rpx;">
									<image src="/static/images/svip.png" style="width: 82rpx;height: 36rpx;"></image>
								</view>
							</view>
<!--              <view class="num"  @click="openAuto1()">-->
<!--                <view class="user_bz_zl font-size32-bold">请点击授权通知</view>-->
<!--              </view>-->


							<!-- <view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">绑定手机号</view> -->
						</view>
						<!-- userInfo.is_svip > 0 ? '/pages/annex/vip_center/index' : '/pages/annex/vip_paid/index' -->
<!--						<view class="num" v-if="isLogin" @click="homePromotion">-->
<!--							<view class="icon">-->
<!--								<image src="https://img.jukee.net/def/3a21b202311271016309129.png" style="width: 80rpx;" mode="widthFix"></image>-->
<!--								&lt;!&ndash; <view class="num-txt" style="font-size: 24rpx;">我的会员</view> &ndash;&gt;-->
<!--							</view>-->
<!--						</view>-->
			<navigator class="num1" url="/pages/extends/user_recommend_desc/index" hover-class="none" v-if="isLogin" @click="openAuto1">
<!--              <view class="icon">-->
              <view class="icon" style="position: relative; z-index: 1;">
<!--                <image src="https://img.jukee.net/def/3a21b202311271016309129.png" style="width: 80rpx;" mode="widthFix"></image>-->
<!--                <image src="/static/images/hktz.gif" style="width: 140rpx;" mode="widthFix"></image>-->
                <image src="https://img.jukee.net/def/9b711202503292232241734.png" style="width: 100rpx;" mode="widthFix"></image>
                <view class="num-txt1 super-bold"><strong>分享赚</strong></view>
              </view>
            </navigator>
					</view>
					<!-- <view class="num-wrapper skeleton-rect">
						<view class="num-item" @click="goMenuPage('/pages/users/user_goods_collection/index')">
							<text class="num">{{userInfo.total_collect_product || 0}}</text>
							<view class="txt">我的收藏</view>
						</view>
						<view v-if="hide_mer_status == 0" class="num-item" @click="goMenuPage('/pages/users/user_goods_collection/index?tab=2')">
							<text class="num">{{userInfo.total_collect_store || 0}}</text>
							<view class="txt">关注店铺</view>
						</view>
						<view class="num-item" @click="goMenuPage('/pages/users/browsingHistory/index')">
							<text class="num">{{userInfo.total_visit_product || 0}}</text>
							<view class="txt">浏览记录</view>
						</view>
						<view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
							<text class="num">{{userInfo.total_coupon || 0}}</text>
							<view class="txt">优惠券</view>
						</view>
					</view> -->
					<!-- <navigator hover-class="none" :url="userInfo.is_svip > 0 ? '/pages/annex/vip_center/index' : '/pages/annex/vip_paid/index'" class="cardVipA acea-row row-between-wrapper" v-if="userInfo.svip_open && svip_switch_status == 1">
						<image class="svip_user" src="/static/images/svip_user.png"></image>
						<view class="left-box">
							<view v-if="userInfo.is_svip > 0" class="small">累计为您节省{{userInfo.svip_save_money}}元</view>
							<view v-else-if="userInfo.is_svip <= 0" class="small">开通享六大特权，省钱又省心
							</view>
						</view>
						<view class="acea-row row-middle">
							<view class="btn-open">{{userInfo.is_svip > 0 ? '立即续费' : '立即开通'}}</view>
						</view>
					</navigator> -->
					<!-- <view class="right-btn">
						<view v-if="isLogin" class="improve_information"
							@click="setUserInformation()">
							<image v-if="!userInfo.is_perfect" :src="domain  + '/uploads/def/20230702/d7ba847fe967749a8e1804df629c8d10.png'" />
							<image v-else :src="domain  + '/uploads/def/20230803/e7b963ba7031c2430a99e70c4d154240.png'" />
						</view>
					</view> -->
				</view>
			</view>
			<view class="wrapper">
				<!-- <view class="order-wrapper">
					<view class="order-hd flex skeleton-rect">
						<view class="left">我的订单</view>
						<view class="right flex" @click="authTo('/pages/users/order_list/index?status=-1')" hover-class="none" open-type="navigate">
							全部订单
							<text class="iconfont icon-xiangyou"></text>
						</view>
					</view>
					<view class="order-bd">
						<block v-for="(item,index) in orderMenu" :key="index">
							<view class="order-item" @click="authTo(item.url)" hover-class="none">
								<view class="pic">
									<text class="iconfont" :class="item.icon"></text>
									<text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
								</view>
								<view class="txt skeleton-rect">{{item.title}}</view>
							</view>
						</block>
					</view>
				</view> -->
				<!-- 我的财富 -->
				<view class="user-menus" style="margin-top: -90rpx;">
					<view class="title skeleton-rect">我的财富</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/users/user_money/index')">
							<view style="font-size: 36rpx;font-weight: bold;">{{userInfo.now_money || 0}}<text>元</text></view>
							<text>现金金额</text>
						</view>
						<view class="item" @click="authTo('/pages/users/user_money/index')">
							<view style="font-size: 42rpx;font-weight: bold;">{{userInfo.yubi_money || 0}}</view>
							<text>鱼币金额</text>
						</view>
						<view class="item-button" @click="authTo('/pages/users/user_cash/index')">
							<view class="item-btn"><image src="https://img.jukee.net/def/7ff7f20230825234108972.png" style="width: 50rpx;" mode="widthFix"/>去领钱</view>
						</view>
					</view>
				</view>
				<!-- 我的财富 -->
				<view class="user-menus" style="padding: 0;">
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/extends/user_recommend_desc/index')" style="margin-top: 0;">
							<image src="https://img.jukee.net/def/41711202311171030192327.png" style="width: 100%;" mode="widthFix">
							</image>
						</view>
						<view class="item" @click="authTo('/pages/annex/vip_paid/index')" style="margin-top: 0;">
							<image src="https://img.jukee.net/def/0243c202404232240218179.jpg" style="width: 100%;" mode="widthFix">
							</image>
						</view>
					</view>
				</view>
				<!-- 我的客户 -->
				<view class="user-menus">
					<view class="title skeleton-rect" style="display: flex; align-items: center;">
						我的客户
						<view @click="authTo('/pages/chat/customer_list/index')" style="position: relative;">
							<image src="https://img.jukee.net/def/743d220231120143418534.png" style="width: 100rpx;height: 100rpx;" />
							<text v-if="isLogin && userInfo.log_count" class="log_count" style="position: absolute;color: #fff;font-size: 24rpx;left: 51rpx;top:4rpx">{{(userInfo.log_count > 99 ? '99+' : userInfo.log_count) || 0}}</text>
						</view>
					</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/extends/user/recommend_user')">
							<image :src=" domain + '/uploads/def/20230702/665fb85629028ea801fd4d1a8e844bd8.png'">
							</image>
							<text>客户推荐</text>
						</view>
						<view class="item" @click="authTo('/pages/users/promoter-list/index?grade=3')">
							<image :src=" domain + '/uploads/def/20230702/e0a90af653f1f25c6a70d1bf9f678395.png'">
							</image>
							<text v-if="isLogin && userInfo.user_custom" class="log_count">{{(userInfo.user_custom > 99 ? '99+' : userInfo.user_custom) || 0}}</text>
							<text>我的客户</text>
						</view>
						<view class="item" @click="authTo('/pages/users/user_demand/index')">
							<image :src=" domain + '/uploads/def/20230702/c7bddeceac3eb59330bc9348fe3edddc.png'">
							</image>
							<text v-if="isLogin && userInfo.my_order_taking" class="log_count">{{(userInfo.my_order_taking > 99 ? '99+' : userInfo.my_order_taking) || 0}}</text>
							<text>客户订单</text>
						</view>
					</view>
				</view>
				<!-- 我的发布 -->
				<view class="user-menus">
					<view class="title skeleton-rect">我的发布</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/users/user_community/index?type=1')">
							<image src="https://img.jukee.net/def/cc396202311201444399976.png">
							</image>
							<text>我的广告</text>
						</view>
						<view class="item" @click="authTo('/pages/users/user_community/index?type=2')" v-if="is_community_video_start == 1">
							<image src="https://img.jukee.net/def/df0e4202310062244566387.png">
							</image>
							<text>我的视频</text>
						</view>
						<view class="item" @click="authTo('/pages/users/user_community/index?type=3')">
							<image :src="domain +  '/uploads/default/20230702/d30f54b641153255dab6505b132e299e.png'">
							</image>
							<text>我的需求</text>
						</view>
					</view>
				</view>
				<!-- 我的圈子 -->
				<view class="user-menus">
					<view class="title skeleton-rect">我的圈子</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/goods_cate/goods_cate', 1)">
							<image :src="domain +  '/uploads/default/20230702/d30f54b641153255dab6505b132e299e.png'">
							</image>
							<text>圈子推荐</text>
						</view>
						<view class="item" @click="authTo('/pages/extends/circle_create/list?type=2')">
							<image :src="domain +  '/uploads/default/20230702/53f04e738f7e2cb9fc2522ea1bc0f5f8.png'">
							</image>
							<text>我的圈子</text>
						</view>
						<!-- <view class="item" @click="authTo('/pages/extends/circle_create/list?type=1')">
							<image :src="domain +  '/uploads/default/20230702/d20eab6291eef3a06edca610c64a3d96.png'">
							</image>
							<text>已入圈子</text>
						</view> -->
						<view class="item" @click="authTo('/pages/extends/circle_create/index')">
							<image :src="domain +  '/uploads/default/20230702/ac29a3332352581fa6c66a048a64e1d7.png'">
							</image>
							<text>建圈赚钱</text>
						</view>
					</view>
				</view>
				<!-- 我的推广 -->
				<view class="user-menus" style="display: none;">
					<view class="title skeleton-rect">我的推广</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/users/promoter-list/index?grade=4')">
							<image :src="domain + '/uploads/default/20230702/3ca1fbb8034935395d20e263e68ca365.png'">
							</image>
							<text>客户推广</text>
						</view>
						<button class="item" open-type="share" @click="userShare()">
							<image src="https://img.jukee.net/def/21866202308252350418679.png">
							</image>
							<text>邀请好友</text>
						</button>
						<view class="item" @click="authTo('/pages/users/user_spread_code/index')">
							<image src="https://img.jukee.net/def/957d5202310062244579317.png">
							</image>
							<text>分享赚钱</text>
						</view>
						<!-- <view class="item" @click="authTo('/pages/extends/circle_create/list?type=3')">
							<image :src="domain + '/uploads/default/20230702/113bf92a49b8b39ce2d0fe5b51786ee5.png'">
							</image>
							<text>圈子推广</text>
						</view>
						<view class="item" @click="authTo('/pages/chat/customer_list/index')">
							<image :src="domain + '/uploads/default/20230702/113bf92a49b8b39ce2d0fe5b51786ee5.png'">
							</image>
							<text>我的消息</text>
						</view> -->
					</view>
				</view>
				<!-- 我的收益 -->
				<!-- <view class="user-menus">
					<view class="title skeleton-rect">我的收益</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/users/user_bill/type_list?tab=1')">
							<image :src="domain +  '/uploads/default/20230702/8af9f8a34632ea123c2b0d786036ff0d.png'">
							</image>
							<text>圈子收益</text>
						</view>
						<view class="item" @click="authTo('/pages/users/user_bill/type_list?tab=3')">
							<image :src="domain +  '/uploads/default/20230702/9524a69cd0c731f212d07c277dd583bf.png'">
							</image>
							<text>分享收益</text>
						</view>
						<view class="item" @click="authTo('')"></view>
					</view>
				</view> -->
				<!-- 我的推广 -->
				<view class="user-menus">
					<view class="title skeleton-rect">财富团队</view>
					<view class="menu-box">
						<view class="item" @click="authTo('/pages/extends/user_recommend_desc/index2')">
							<image src="https://img.jukee.net/def/b10b2202310062249261524.png" style="width: 80rpx;height: 80rpx;">
							</image> 
							<text>加入合伙人</text>
						</view>
						<view class="item" @click="authTo(userInfo.is_svip > 0 ? '/pages/users/user_spread_code/index' : '/pages/extends/user_recommend_desc/index')">
							<image src="https://img.jukee.net/default/e6270202309192025551387.png" style="width: 80rpx;height: 80rpx;">
							</image>
							<text>直推人赚钱</text>
						</view>
						<view class="item" @click="authTo('/pages/users/promoter-list/index?grade=0')">
							<image :src="domain + '/uploads/default/20230702/cbb9f623e9a194e337c6fc3705040b1c.png'">
							</image>
							<text>我的团队</text>
						</view>
					</view>
				</view>
				<!-- 我的推广 -->
				<view class="user-menus">
					<view class="title skeleton-rect">我的好货</view>
					<view class="menu-box">
						<!-- <view class="item" @click="authTo('/pages/extends/user_product/create_user_product')">
							<image :src="domain + '/uploads/default/20230702/4a5794f1860b8b1012b2db1d0d235df1.png'">
							</image>
							<text>添加好货</text>
						</view> -->
						<view class="item" @click="authTo('/pages/extends/user_product/list')">
							<image :src="domain + '/uploads/default/20230702/5d1c0b88c92910f4e1baf94e66e866e2.png'">
							</image>
							<text>我的好货</text>
						</view>
						<view class="item" @click="authTo('/pages/extends/user_product/shop_order')">
							<image :src="domain + '/uploads/default/20230702/b5c08cc6f39354cc35246840cf6ab3f5.png'">
							</image>
							<text>商家订单</text>
						</view>
						<view class="item" @click="authTo('/pages/extends/user_product/my_order')">
							<image :src="domain + '/uploads/default/20230702/72682130becc0a9c263208c046b59b44.png'">
							</image>
							<text>我的订单</text>
						</view>
					</view>
				</view>
				<!-- 我的服务 -->
				<view class="user-menus">
					<view class="title skeleton-rect">我的服务</view>
					<view class="menu-box">
						<!-- <view class="item" @click="authTo('/pages/extends/user_product/create_user_product')">
							<image :src="domain + '/uploads/default/20230702/4a5794f1860b8b1012b2db1d0d235df1.png'">
							</image>
							<text>添加好货</text>
						</view> -->
						<view class="item" @click="authTo('/pages/users/feedback/index')">
							<image src="https://img.jukee.net/def/608d9202311201536515136.png">
							</image>
							<text>问题反馈</text>
						</view>
						<view class="item" @click="authTo('/pages/users/user_address_list/index')">
							<image src="https://img.jukee.net/def/73a16202311201536508302.png">
							</image>
							<text>地址管理</text>
						</view>
						<!-- <view class="item" @click="authTo('/pages/chat/customer_list/index')">
							<image src="https://ly.jukee.net/uploads/default/20230702/53f04e738f7e2cb9fc2522ea1bc0f5f8.png">
							</image>
							<text v-if="isLogin && userInfo.log_count" class="log_count">{{userInfo.log_count || 0}}</text>
							<text>我的消息</text>
						</view> -->
						<button class="item" open-type="contact">
							<image src="https://img.jukee.net/def/5ed30202311201536529921.png">
							</image>
							<text>我的客服</text>
						</button>
						<view class="item" @click="authTo('/pages/extends/user_service/index')">
							<image :src="domain + '/uploads/default/20230702/b5c08cc6f39354cc35246840cf6ab3f5.png'">
							</image>
							<text>服务商入驻</text>
						</view>
					</view>
				</view>
				<!-- 轮播 -->
				<view class="slider-wrapper skeleton-rect" v-if="imgUrls.length>0">
					<swiper indicator-dots="true" :autoplay="autoplay" :circular="circular" :interval="interval"
						:duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
						<block v-for="(item,index) in imgUrls" :key="index">
							<swiper-item>
								<view @click="goUrl(item.url)" class='slide-navigator acea-row row-between-wrapper'>
									<image :src="item.pic" class="slide-image"></image>
								</view>
							</swiper-item>
						</block>
					</swiper>
				</view>
				<!-- 会员菜单 -->
				<!-- <view class="user-menus" style="margin-top: 20rpx;">
					<view class="title skeleton-rect">我的服务</view>
					<view class="menu-box">
						<block v-for="(item,index) in personalMenu" :key="index">
							<view v-if="item.isShow" class="item">
								<view @click="authTo(item.url)" class="item-count">
									<image v-if="showSkeleton" class="skeleton_image skeleton-radius"></image>
									<image v-else :src="item.pic"></image>
									<text>{{item.name}}</text>
								</view>
							</view>
						</block>
					</view>
				</view> -->
			</view>
			<view v-if="copyright.status !== -1" class="copy-right">
				<image class="img-copyright" :src="copyright.image" mode="widthFix"></image>
				<view class="text">{{copyright.Copyright}}</view>
			</view>
			<view v-else class="copy-right">
				<view class="text"></view>
			</view>
			<view style="height: 50rpx;"></view>
			<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse" :isGoIndex="false"></authorize>
			

			<!-- #ifndef H5 -->
			<passwordPopup></passwordPopup>
			<!-- #endif -->
		</view>
		<view class="foot" v-if="newData.status && newData.status.status">
			<view class="page-footer" id="target" :style="{'background-color':newData.bgColor.color[0].item}">
				<view class="foot-item" v-for="(item,index) in newData.menuList" :key="index" @click="goRouter(item, index)">
					<block v-if="![2,3].includes(index)">
						<block v-if="item.link == activeRouter">
							<span v-if="index == 4 && userInfo.log_count > 0" class="remind_tips">{{userInfo.log_count > 99 ? '99+' : userInfo.log_count}}</span>
							<image :src="item.imgList[0]"></image>
							<view class="txt" :style="{color:newData.activeTxtColor.color[0].item}">{{item.name}}
							</view>
						</block>
						<block v-else>
							<image :src="item.imgList[1]"></image>
							<view class="txt" :style="{color:newData.txtColor.color[0].item}">{{item.name}}</view>
						</block>
					</block>
					<block v-else-if="index == 2">
						<image class="foot-item-add" :src="item.imgList[0]"></image>
						<view class="txt" style="font-size: 32rpx;margin-bottom: 40rpx;">发布</view>
					</block>
					<block v-else-if="index == 3">
						 <!-- && is_community_video_start == 1 -->
						<block v-if="item.link == activeRouter">
							<image :src="item.imgList[0]"></image>
							<view class="txt" :style="{color:newData.activeTxtColor.color[0].item}">{{item.name}}
							</view>
						</block>
						<block v-else>
							<image :src="item.imgList[1]"></image>
							<view class="txt" :style="{color:newData.txtColor.color[0].item}">{{item.name}}</view>
						</block>
					</block>
				</view>
			</view>
		</view>
		<!-- 发布弹窗 -->
		<publishPopup :isPublishPopup="isPublishPopup" @closePublishPopup="closePublishPopup"></publishPopup>
		<!-- #ifdef MP -->
		<privacyMenu ref="privacyMenuPopup"/>
		<!-- #endif -->
		<paymentData :payMode="payMode" :pay_close="pay_close" :is-call="true" @onChangeFun="onChangeFun" :payTitle="'推广到期时间'" :payGroupName="pay_group_name" :userCount="userCount" :unit="'天'" :rechargeType="recharge_type" :extends="payment_data_extends"></paymentData>
		<!-- 升级VIP弹窗 -->
		<view class="user_vip_tips" v-if="user_vip_tips">
			<view class="user_vip_back"></view>
			<view class="user_vip_content">
				<view class="user_vip_close" @click="user_vip_tips = false">
					<image src="https://ly.jukee.net/uploads/default/20230803/8d5635ef7c1504bfadbd85f0a04270cc.png" />
				</view>
				<view class="user_vip_icon">
					<image src="https://img.jukee.net/def/3902e202311271626269626.png" />
				</view>
				<view class="user_vip_title font-size32-bold">成为VIP会员</view>
				<view class="user_vip_tit font-size36-bold" style="font-size: 46rpx;">无限添加客户微信<br/>查看所有客户联系方式</view>
				<view class="user_vip_messag">更多权益请在 “我的” 会员中心查看</view>
				<view class="user_vip_btn" @click="goUrl('/pages/annex/vip_paid/index')">确定</view>
			</view>
		</view>
	</view>
</template>
<script>
	let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
	import {
		getMenuList,
		getUserInfo,
		setVisit
	} from '@/api/user.js';
	import {
		getVersion
	} from "@/api/public";
	import {
		orderData
	} from '@/api/order.js'
	import {
		mapGetters
	} from "vuex";
	import authorize from '@/components/Authorize';
	import paymentData from '@/components/payDataList';
	// #ifdef MP
	import privacyMenu from '@/components/privacyMenu.vue';
	// #endif
	import publishPopup from '@/components/publishPopup';
	import dayjs from '@/plugin/dayjs/dayjs.min.js';
	import Cache from '@/utils/cache';
	// #ifndef H5
	import passwordPopup from '@/components/passwordPopup';
	// #endif
	import {
		configMap
	} from '@/utils';
	import Auth from '../../libs/wechat';
	import {
		HTTP_REQUEST_URL
	} from '@/config/app';
	const app = getApp();
	export default {
		components: {
			// #ifndef H5
			passwordPopup,
			// #endif
			authorize,
			publishPopup,
			// #ifdef MP
			privacyMenu,
			// #endif
			paymentData,
		},
		computed: configMap({
			mer_intention_open: 0,
			hide_mer_status: 1,
			recharge_switch: 0,
			integral_status: 0,
			member_status: 0,
			balance_func_status: 0,
			svip_switch_status: 0,
			navigation: {},
			is_community_video_start: 0,
			showPrivacy: false
		}, mapGetters(['isLogin', 'viewColor', 'keyColor'])),
		filters: {
			dateFormat: function(value) {
				return dayjs(value * 1000).format('YYYY-MM-DD');
			}
		},
		data() {
			return {
				//#ifdef H5
				isWeixin: this.$wechat.isWeixin(),
				//#endif
				domain: HTTP_REQUEST_URL,
				showSkeleton: true, //骨架屏显示隐藏
				isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
				orderMenu: [{
						icon: 'icon-daifukuan1',
						title: '待付款',
						url: '/pages/users/order_list/index?status=0',
						num: 0
					},
					{
						icon: 'icon-daifahuo1',
						title: '待发货',
						url: '/pages/users/order_list/index?status=1',
						num: 0
					},
					{
						icon: 'icon-daishouhuo1',
						title: '待收货',
						url: '/pages/users/order_list/index?status=2',
						num: 0
					},
					{
						icon: 'icon-daipingjia1',
						title: '待评价',
						url: '/pages/users/order_list/index?status=3',
						num: 0
					},
					{
						icon: 'icon-a-shouhoutuikuan1',
						title: '售后/退款',
						url: '/pages/users/refund/list',
						num: 0
					},
				],
				imgUrls: [{
					url: '',
					pic: ''
				}],
				userMenu: [],
				skeletonMenu: [],
				personalMenu: [{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					}
				],
				autoplay: true,
				circular: true,
				interval: 3000,
				duration: 500,
				isAuto: false, //没有授权的不会自动授权
				isShowAuth: false, //是否隐藏授权
				orderStatusNum: {},
				userInfo: {
					aratar: '/static/f.png'
				},
				MyMenus: [],
				is_promoter: 0, //推广人开关  1开
				extension_status: 0,
				copyright: {
					copyright_status: 1
				},
				newData: {},
				activeRouter: '',
				sysHeight: sysHeight,
				isPublishPopup: false,
				payMode: [{
					name: '微信支付',
					icon: 'icon-weixinzhifu',
					value: 'wechat',
					title: '微信快捷支付',
					payStatus: true
					}
					// #ifdef H5 ||APP-PLUS
					,
					{
					name: '支付宝支付',
					icon: 'icon-zhifubao',
					value: 'alipay',
					title: '支付宝支付',
					payStatus: true
					}
					// #endif
					,
					{
						name: "余额支付",
						icon: "icon-yuezhifu",
						value: 'balance',
						title: '可用余额:',
						number: 0,
						payStatus: this.$store.getters.globalData.yue_pay_status
					}
				],
				pay_close: false,
				pay_group_name: 'user_promotion',
				userCount: '',
				recharge_type: 9,
				payment_data_extends: {},
				user_vip_tips: false,
			}
		},
		onLoad() {

		},
		onReady() {
			this.isNodes++;
		},
		mounted: function() {
			this.getVersion()
		},
		onShow: function() {
			let that = this;
			let routes = getCurrentPages();
			let curRoute = routes[routes.length - 1].route
			this.activeRouter = '/' + curRoute
			this.getNav();
			if (that.isLogin) {
				this.getUserInfo();
				this.orderNum();
			} else {
				this.userInfo = {}
				this.orderMenu.forEach(v => {
					v.num = 0
				})
				this.getMyMenus();
			}
			setTimeout(() => {
				this.showSkeleton = false
			}, 500)
		},
		methods: {
			authTo(url, type = 2) {
				let that = this;
				if (this.isLogin) {
					if (this.userInfo.is_svip <= 0 && ['/pages/extends/user_service/index'].indexOf(url) != -1) {
						that.user_vip_tips = true;
						return;
					}
					if (type == 2) {
						return this.$util.Tips(url);
					} else {
						return this.$util.Tips({
							title: '',
							endtime: 0
						}, {
							tab: type,
							url: url,
						});
					}
				} else {
					this.openAuto()
				}
			},
			goRouter(item, index) {
				if(index == 2) {
					this.isPublishPopup = true;
				} else if(index == 3) {
					uni.navigateTo({
						url: item.link
					})
				} else {
					var pages = getCurrentPages();
					var page = (pages[pages.length - 1]).$page.fullPath;
					if (item.link == page) return
					uni.switchTab({
						url: item.link,
						fail(err) {
							uni.redirectTo({
								url: item.link
							})
						}
					})
				}
			},
			getNav() {
				this.newData = this.navigation
				if (this.newData.status && this.newData.status.status) {
					uni.hideTabBar()
				} else {
					uni.showTabBar()
				}
			},
			toService(is_sys) {
				uni.navigateTo({
					url: '/pages/admin/business/index?is_sys=' + is_sys
				})
			},
			getVersion() {
				getVersion().then(data => {
					this.copyright = data.data;
				});
			},

			// 菜单显示
			filterMenus: function(item) {
				let that = this;
				if (item.url == '/pages/users/user_money/index') item.isShow = that.balance_func_status == 1
				else if (item.url == '/pages/users/user_spread_user/index') {
					if (that.extension_status == 0) {
						item.isShow = false
					} else if (that.extension_status == 1) {
						if (that.is_promoter == 1) {
							item.isShow = that.is_promoter == 1 && that.extension_status == 1
						} else if (that.is_promoter == 0) {
							item.isShow = that.is_promoter == 0 && that.extension_status == 1
							item.url = "/pages/users/distributor/index"
						}
					}
				} else if (item.url == '/pages/store/settled/index') item.isShow = that.mer_intention_open == 1
				else if (item.url == '/pages/users/user_grade/index') item.isShow = that.member_status == 1
				else if (item.url == '/pages/users/user_integral/index') item.isShow = that.integral_status == 1
				else item.isShow = true
			},
			showMenu(menu) {
				return !menu || ['integral', 'service', 'admin_order', 'verify_order', 'intention', 'promoter', 'balance']
					.indexOf(menu) === -1;
			},
			goUrl(url) {
				if (url.indexOf("http") != -1) {
					// #ifdef H5
					location.href = url
					// #endif
				} else {
					if (['/pages/goods_cate/goods_cate', '/pages/order_addcart/order_addcart', '/pages/user/index',
							'/pages/plant_grass/index'
						].indexOf(url) == -1) {
						uni.navigateTo({
							url: url
						})
					} else {
						uni.switchTab({
							url: url
						})
					}
				}
			},
			// 去聊天列表
			goChat() {
				let type = this.userInfo.service ? 1 : 0
				uni.navigateTo({
					url: `/pages/chat/customer_list/index?type=${type}`
				})
			},
			// 记录会员访问
			setVisit() {
				setVisit({
					url: '/pages/user/index'
				}).then(res => {})
			},
			// 打开授权
			openAuto() {
				// #ifdef MP
				if (uni.getPrivacySetting) {
					uni.getPrivacySetting({
						success: res => {
							console.log("是否需要授权：", res.needAuthorization, "隐私协议的名称为：", res.privacyContractName, res)
						},
					})
				}
				// 小程序隐私弹窗
				if(app.globalData.showPrivacy) {
					return this.$refs.privacyMenuPopup.handleDisagreeOpen()
				}
				// #endif
				this.isAuto = true;
				this.isShowAuth = true
			},
     
			// 授权回调
			onLoadFun(data) {
				this.getUserInfo();
				this.getMyMenus();
				this.orderNum();
				this.isShowAuth = false;
        // console.log("登录成功会xxxx")
			},
      
			Setting: function() {
				uni.openSetting({
					success: function(res) {}
				});
			},
			// 授权关闭
			authColse: function(e) {
				this.isShowAuth = e
			},
			// 绑定手机
			bindPhone() {
				uni.navigateTo({
					url: '/pages/users/user_phone/index'
				})
			},
			/**
			 * 获取个人用户信息
			 */
			getUserInfo: function() {
				let that = this;
				getUserInfo().then(res => {
					that.userInfo = res.data;
					that.userInfo.svip_open = true;
					that.userInfo.vip_status = 2;
					that.is_promoter = res.data.is_promoter;
					that.extension_status = res.data.extension_status;
					// #ifdef H5 ||APP-PLUS
					that.payMode[2].number = res.data.now_money;
					// #endif
					// #ifndef H5 ||APP-PLUS
					that.payMode[1].number = res.data.now_money;
					// #endif
					that.getMyMenus();
					if (!res.data.phone && !that.$Cache.has('is_information')) {
						uni.showModal({
							title: '温馨提示',
							content: '完善资料，获取更多精准客户。',
							success: function(res) {
								that.$Cache.set('is_information', 1, 86400)
								if (res.confirm) {
									that.setUserInformation();
								} else if (res.cancel) {
									console.log('用户点击取消');
								}
							}
						});
					}
				});
			},
			// 订单数字
			orderNum() {
				orderData().then(({
					data
				}) => {
					this.orderMenu.forEach((item, index) => {
						console.log('item')
						switch (item.title) {
							case '待付款':
								item.num = data.noPay
								break
							case '待发货':
								item.num = data.noPostage
								break
							case '待收货':
								item.num = data.noDeliver
								break
							case '待评价':
								item.num = data.noComment
								break
							case '售后/退款':
								item.num = data.refund
								break
						}
					})
				})
			},
			/**
			 *
			 * 获取个人中心图标
			 */
			getMyMenus: function() {
				let that = this;
				if (this.MyMenus.length) return;
				getMenuList().then(res => {
					that.personalMenu = []
					res.data.menu.forEach((item, index) => {
						that.filterMenus(item)
						that.personalMenu.push(item)
					})
					that.imgUrls = res.data.banner
				});
			},
			// 编辑页面
			goEdit() {
				if (this.isLogin) {
					uni.navigateTo({
						url: '/pages/plantGrass/plant_user/index?id='+this.userInfo.uid
					})
				} else {
					this.openAuto()
				}
			},
			goSetting() {
				if (this.isLogin) {
					uni.navigateTo({
						url: '/pages/users/user_setting/index'
					})
				} else {
					this.openAuto()
				}
			},
			// 完善资料
			setUserInformation() {
				if (this.isLogin) {
					uni.navigateTo({
						url: '/pages/extends/user_information/index'
					})
				} else {
					this.openAuto()
				}
			},
			// 签到
			goSignIn() {
				uni.navigateTo({
					url: '/pages/users/user_sgin/index'
				})
			},
			// goMenuPage
			goMenuPage(url) {
				if (this.isLogin) {
					uni.navigateTo({
						url
					})
				} else {
					this.openAuto()
				}
			},
			closePublishPopup() {
				this.isPublishPopup = false;
			},
			userShare() {
				let that = this;
				uni.showShareMenu({
					// 设置分享的标题
					withShareTicket: true,
					menus: ['shareAppMessage', 'shareTimeline'],  // 可选的分享类型，根据需求修改
					title: '2000多位经销商需要批量订货、加盟代理。',
					imageUrl: that.userInfo.avatar || 'https://img.jukee.net/def/6c0e4202309031609147410.png',
					path: '/pages/index/index?spid='+that.userInfo.uid,
					success(res) {
					  // 分享成功
					  console.log('分享成功', res);
					},
					fail(err) {
					  // 分享失败
					  console.log('分享失败', err);
					}
				})
			},
			homePromotion() {
				this.payment_data_extends = {uid: this.userInfo.uid}
				this.userCount = this.userInfo.promotion_exp
				this.pay_close = true;
			},
			onChangeFun: function(e) {
				let opt = e;
				let action = opt.action || null;
				let value = opt.value != undefined ? opt.value : null;
				action && this[action] && this[action](value);
			},
			payClose: function() {
				this.pay_close = false;
			},
			payOrderSuccess: function() {
			}
		},
		// #ifdef MP
		onShareAppMessage: function() {
			let that = this;
			wx.showShareMenu({
				withShareTicket: true,
				menus: ['shareAppMessage', 'shareTimeline']
			});
			return {
				title: that.userInfo.nickname+'的微店，这里有ta的服务、好货、圈子、视频。' || '2000多位经销商需要批量订货、加盟代理。',
				imageUrl: that.userInfo.user_top_back || that.userInfo.avatar || 'https://img.jukee.net/def/6c0e4202309031609147410.png',
				path: '/pages/index/index?spid=' + that.userInfo.uid
			}
		},
		onShareTimeline: function() {
			let that = this;
			return {
				title: that.share_title,
				query: {
					spid: that.userInfo.uid
				},
				imageUrl: ''
			};
		},
		// #endif
	}
</script>

<style lang="scss">
	.cardVipA {
		position: absolute;
		background: linear-gradient(145deg, #F8E3A8 0%, #E8C077 100%);
		background-size: 100% 100%;
		width: 710rpx;
		height: 84rpx;
		bottom: -2rpx;
		left: 20rpx;
		padding: 0 30rpx 0 105rpx;
		border-radius: 16rpx 16rpx 0 0;
		box-sizing: border-box;

		.svip_user {
			width: 52rpx;
			height: 52rpx;
			border-radius: 100%;
			position: absolute;
			left: 30rpx;
			top: 17rpx;
		}

		.left-box {
			font-size: 26rpx;
			color: #905100;
			font-weight: 400;
		}

		.btn {
			color: #905100;
			font-weight: 400;
			font-size: 24rpx;
		}

		.btn-open {
			background: #282828;
			border-radius: 40rpx;
			color: #F7E1A6;
			font-size: 24rpx;
			width: 140rpx;
			height: 50rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.new-users {
		.head {
			background: #fff;

			.user-card {
				position: relative;
				width: 100%;
				padding: 10rpx 0 20rpx;
				background-image: linear-gradient(90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
				padding: 35rpx 0 120rpx;

				&.svip-card {
					padding: 35rpx 0 120rpx;
				}

				.bg {
					position: absolute;
					left: 0;
					top: 0;
					width: 100%;
					height: 100%;
					background-size: 100% 100%;
				}

				.user-info {
					z-index: 20;
					position: relative;
					display: flex;
					padding: 0 28rpx;
					align-items: center;

					.level_icon {
						width: 34rpx;
						height: 32rpx;
						margin: 4rpx 0 0 6rpx;
						border: none;
					}

					.avatar-box {
						width: 124rpx;
						height: 124rpx;
						border-radius: 50%;
						position: relative;

						.avatar,
						image {
							width: 124rpx;
							height: 124rpx;
							border-radius: 50%;
						}

						&.on {
							.avatar {
								border: 2px solid #FFAC65;
								border-radius: 50%;
								box-sizing: border-box;
							}
						}
					}

					.headwear {
						position: absolute;
						right: -4rpx;
						top: -14rpx;
						width: 44rpx;
						height: 44rpx;
						z-index: -1;

						image {
							width: 100%;
							height: 100%;
						}
					}

					.info {
						flex: 1;
						display: flex;
						flex-direction: column;
						justify-content: space-between;
						margin-left: 20rpx;
						padding: 15rpx 0;

						.name {
							display: flex;
							align-items: center;
							font-size: 44rpx;
							font-weight: 500;
							color: #323232;
							line-height: 60rpx;
							@keyframes shake {
								0% { transform: translateX(0); }
								50% { transform: translateX(10px); }
								100% { transform: translateX(0); }
							}
							.tips_login {
								width: 80rpx;
								height: 80rpx;
								animation: shake 1s infinite;
							}
							.vip {
								width: 82rpx;
								// height: 36rpx;
								margin-left: 12rpx;

								image {
									width: 82rpx;
									height: 36rpx;
								}
							}
						}

						.num {
							display: flex;
							align-items: center;
							font-size: 26rpx;
							color: rgba(255, 255, 255, 0.6);

							.user_bz_zl {
								background-color: #323232;
								color: #FFE60F;
								padding: 5rpx 15rpx;
								border-radius: 30rpx;
								// margin-top: 10rpx;
							}
						}
            .num1 {
              display: flex;
              align-items: center;
              //font-size: 26rpx;
              font-size: 40rpx;
              color: rgba(255, 255, 255, 0.6);

              .user_bz_zl {
                background-color: #323232;
                color: #FFE60F;
                padding: 5rpx 15rpx;
                border-radius: 30rpx;
                // margin-top: 10rpx;
              }
            }
					}
				}

				.num-wrapper {
					z-index: 30;
					position: relative;
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin: 30rpx 20rpx 0;
					color: #fff;

					.num-item {
						width: 25%;
						text-align: center;

						.num {
							font-size: 42rpx;
							font-weight: bold;
						}

						.txt {
							margin-top: 8rpx;
							font-size: 22rpx;
							color: rgba(255, 255, 255, 0.6);
						}
					}
				}

				.sign {
					z-index: 200;
					position: absolute;
					right: -12rpx;
					top: 80rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					width: 120rpx;
					height: 60rpx;
					background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
					border-radius: 29rpx 4rpx 4rpx 29rpx;
					color: #282828;
					font-size: 28rpx;
					font-weight: bold;
				}
			}
		}

		.wrapper {
			position: relative;
			padding: 0 30rpx;
		}

		.order-wrapper {
			background-color: #fff;
			border-radius: 16rpx;

			.order-hd {
				height: 80rpx;
				align-items: center;
				justify-content: space-between;
				border-bottom: 1px dashed #DDDDDD;
				padding: 0 30rpx;
				color: #282828;

				.left {
					font-weight: bold;
				}

				.right {
					align-items: center;
					color: #666666;
					font-size: 26rpx;

					.icon-xiangyou {
						margin-left: 5rpx;
						margin-top: 6rpx;
						font-size: 26rpx;
					}
				}
			}

			.order-bd {
				display: flex;

				.order-item {
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					width: 20%;
					height: 160rpx;

					.pic {
						position: relative;
						text-align: center;

						.iconfont {
							font-size: 62rpx;
							color: var(--view-theme);
						}
					}

					.txt {
						margin-top: 8rpx;
						font-size: 26rpx;
						color: #454545;
					}
				}
			}
		}

		.slider-wrapper {
			margin: 20rpx 0;
			height: 130rpx;

			swiper,
			swiper-item {
				height: 100%;
			}

			image {
				width: 100%;
				height: 130rpx;
			}
		}

		.user-menus {
			margin-top: 30rpx;
			padding: 30rpx 40rpx;
			background-color: #fff;
			border-radius: 16rpx;

			.title {
				font-size: 36rpx;
				font-weight: 500;
				color: #323232;
				line-height: 50rpx;
			}

			.item {
				position: relative;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-between;
				flex: 1;
				line-height: 28rpx;
				margin-top: 40rpx;
				text-align: center;

				/* .item-count {
					display: flex;
					flex-direction: column;
					align-items: center;
					width: 100%;
				} */
				image {
					width: 60rpx;
					height: 60rpx;
				}
				
				.log_count {
					background-color: red;
					color: #fff;
					position: absolute;
					width: 30rpx;
					height: 30rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					border-radius: 50%;
					margin: 0;
					// right: 70rpx;
					right: 60rpx;
					font-size: 24rpx;
					padding: 4rpx;
					top: -10rpx;
				}

				.skeleton_image {
					width: 80rpx;
					height: 80rpx;
				}

				text {
					margin-top: 20rpx;
					text-overflow: ellipsis;
					overflow: hidden;
					white-space: nowrap;
					font-size: 28rpx;
					font-weight: 400;
					color: #323232;
					line-height: 40rpx;
				}

				&:last-child::before {
					display: none;
				}
			}
			
			.item-button {
				flex: 1;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 32rpx;
				.item-btn {
					padding: 10rpx 20rpx;
					background-color: #ece1e1;
					border-radius: 30rpx;
					display: flex;
					align-items: center;
				}
			}

			button {
				font-size: 28rpx;
			}
		}

		.phone {
			color: #fff;
		}

		.order-status-num {
			background-color: #fff;
			color: var(--view-theme);
			border-radius: 200rpx;
			position: absolute;
			right: -12rpx;
			top: -12rpx;
			font-size: 20rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			min-width: 30rpx;
			height: 30rpx;
			padding: 0 8rpx;
			box-sizing: border-box;
			border: 1px solid var(--view-theme);
		}
	}

	.sys-head {
		position: relative;
		width: 100%;
		// background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);

		.bg {
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			background-image: linear-gradient(90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
			background-size: 100% auto;
			background-position: left bottom;
		}

		.sys-title {
			z-index: 10;
			position: relative;
			height: 43px;
			line-height: 43px;
			font-size: 36rpx;
			font-weight: 500;
			color: #37393A;
			padding-left: 40rpx;
		}
	}

	.menus-list-item {
		background: #fff;
		border-radius: 12rpx;
		padding: 30rpx 50rpx 30rpx 40rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 20rpx;

		.title {
			font-size: 34rpx;
			color: #282828;
			font-weight: bold;

			.merchant {
				color: #E93323;
			}

			.plantform {
				color: #FFC552;
			}
		}

		.info {
			margin-top: 15rpx;
			color: #666666;
			font-size: 22rpx;
		}

		.image {
			width: 180rpx;
			height: 108rpx;
			background-size: 100%;
			background-repeat: no-repeat;

		}
	}

	.merchant-image {
		background-image: url('');
	}

	.plantform-image {
		background-image: url('');
	}

	.copy-right {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		color: #CCCCCC;
		font-size: 22rpx;
		margin-top: 40rpx;
		margin-bottom: 98rpx;
	margin-bottom: calc(98rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
		margin-bottom: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/

		.iconfont {
			font-size: 60rpx;
		}

		.img-copyright {
			width: 60rpx;
			height: 60rpx;
		}
	}

	.menu-box {
		display: flex;
		flex-wrap: wrap;
	}

	.right-btn {
		z-index: 99;
		position: absolute;
		right: 30rpx;
		top: 40rpx;
		display: flex;
		align-items: center;
		color: #fff;

		.improve_information {
			position: fixed;
			right: 0;
			top: 240rpx;

			image {
				width: 142rpx;
				height: 48rpx;
			}
		}

		.iconfont {
			font-size: 40rpx;
			margin-left: 33rpx;
		}

		.btn {
			position: relative;
		}

		.iconnum {
			min-width: 6px;
			background-color: #fff;
			color: var(--view-theme);
			border-radius: 15rpx;
			position: absolute;
			right: -10rpx;
			top: -10rpx;
			font-size: 10px;
			padding: 0 4px;
		}
	}

	.menu-list-count {
		background-color: #fff;
		margin-top: 20rpx;
		border-radius: 12rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.menu-item {
			width: 50%;
			padding: 25rpx 15rpx;
			display: flex;
			align-items: center;
			position: relative;

			&:first-child {
				&::after {
					content: "";
					display: block;
					border-right: 1rpx solid #E2E2E2;
					height: 56%;
					position: absolute;
					right: 0;
				}
			}

			.image {
				width: 106rpx;
				height: 64rpx;
				background-size: 100%;
				background-repeat: no-repeat;

				&.merchant-image {
					margin-right: 15rpx;
				}

				&.plantform-image {
					margin-left: 15rpx;
				}
			}

			.menu-text {
				margin-left: 10rpx;

				.title {
					color: #333333;
					font-weight: bold;
					font-size: 26rpx;

					.merchant {
						color: #E93323;
					}

					.plantform {
						color: #FFC552;
					}
				}

				.info {
					color: #999999;
					font-size: 22rpx;
					margin-top: 5rpx;
				}
			}
		}
	}

	.page-footer {
		position: fixed;
		bottom: 0;
		z-index: 30;
		display: flex;
		align-items: center;
		justify-content: space-around;
		width: 100%;
		height: calc(120rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
		height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
		box-sizing: border-box;
		border-top: solid 1rpx #F3F3F3;
		background-color: #fff;
		box-shadow: 0px 0px 17rpx 1rpx rgba(206, 206, 206, 0.32);
		padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
		padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/

		&.filter {
			filter: blur(2rpx);
		}

		.foot-item {
			display: flex;
			width: max-content;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			position: relative;
			line-height: 50rpx;
			padding: 0 30rpx;
			position: relative;
			.count-num {
				position: absolute;
				display: flex;
				justify-content: center;
				align-items: center;
				width: 40rpx;
				height: 40rpx;
				top: 0rpx;
				right: -15rpx;
				color: #fff;
				font-size: 20rpx;
				background-color: #FD502F;
				border-radius: 50%;
				padding: 4rpx;
			}
			.remind_tips {
				position: absolute;
				background-color: red;
				border-radius: 50%;
				width: 40rpx;
				height: 40rpx;
				color: #fff;
				display: flex;
				align-items: center;
				justify-content: center;
				right: 10rpx;
				top: -20rpx;
				font-size: 24rpx;
			}
		}

		.foot-item image {
			height: 50rpx;
			width: 50rpx;
			text-align: center;
			margin: 0 auto;
		}

		.foot-item .foot-item-add {
			width: 120rpx;
			height: 120rpx;
			// margin-bottom: 70rpx;
		}

		.foot-item .txt {
			font-size: 26rpx;
		}
	}
// 升级VIP弹窗
.user_vip_back {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 35;
}
.user_vip_content {
	background-color: #fff;
	position: fixed;
	top: 30%;
	left: 50rpx;
	right: 50rpx;
	// margin: 50% 50rpx 0;
	border-radius: 30rpx;
	padding: 30rpx;
	text-align: center;
	z-index: 35;
	.user_vip_close {
		position: absolute;
		right: 30rpx;
		top: 50rpx;
		image {
			width: 50rpx;
			height: 50rpx;
		}
	}
	.user_vip_icon {
		margin: 0 auto;
		image {
			width: 140rpx;
			height: 130rpx;
			margin: 0 auto;
			display: block;
		}
	}
	.user_vip_tit  {
		margin-top: 20rpx;
	}
	.user_vip_messag {
		font-size: 32rpx;
		margin-top: 30rpx;
	}
	.user_vip_btn {
		font-weight: bold;
		background-color: #FDE515;
		display: inline-block;
		padding: 10rpx 50rpx;
		border-radius: 10rpx;
		margin-top: 30rpx;
		font-size: 42rpx;
	}
  /* CSS */
  .num-txt1 {
    font-size: 17rpx;
  }

  .super-bold1 {
    font-weight: 700;
  }
}
</style>